Move http.js from static/js/worker to static/js

Part of the follow-ups to [this card](https://trello.com/c/rUyKcTDN) - move http.js as it is used from other places than just the worker.