WebAssembly: implement Module imports/exports