[DRAFT] Add support for HTTP Basic Auth to http.js

This change illustrates the idea of extending get(..), post(..) etc.
with additional username, and password arguments to use the
XMLHttpRequest.open support for basic authentication