Add support for Basic Authentication in Angular client.

In order to use Basic Authentication with Angular's `$http` provider you must add the `Authorization` header yourself.

This PR Base64 encodes the `username:password` from the `host.auth` property, adds it to the `Authorization` header and sets `withCredentials: true`.