New Net implementation for Android.

Also factored out some shared header handling code.
Work around CORS when testing in HTML. Blah.
New Net implementation for HTML backend.