* HTTP Basic Auth, some cleanups
There’s no need for additional dependency `btoa` as `XHR2` already has
the support for Basic Auth.
* remove redundant code
* fix semicolons
* Rewrite Basic Auth to support both sync and async calls.
* semicolon consistency