implement emscripten_wget

I've included a `test_wget.cpp`, but not sure how to make it a test case, due to cross domain errors.
this line and the one before it make me think, perhaps we should call a `Runtime.setAsync()` which would set `noExitRuntime` as well as call `asm.setAsync`. Just a thought, not for this pull request.