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.
If you mean something like 'the async version however, returns immediately, and you cannot access the file until the callback is called', would you like it in the comments here, or for the next function?