stage2/wasm: implement basic container generation

Thus far, we only generate the type, function, export, and code
sections. These are sufficient to generate and export simple functions.

Codegen is currently hardcoded to `i32.const 42`, the main goal of this
commit is to create infrastructure for the container format which will
work with incremental compilation.
3370b5f109Isaac Freund committed on 8/17/2020, 10:32:58 PMparent96a2755
5 files changedLine totals unavailable