fixes some bugs related to GC on JS
improves XMLHttpRequest

* async local (fs) requests
* adds overrideMimeType
* fixes some GC issues

Missing:
* convert object to json from response
* async network requests