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.
Could we write this as "To be able to use this functions, you will need to compile you appliation with the linker flag `-s ASYNCIFY=1`."