Small tweaks
Move all http.js-specific stuff into same module