feat(*): user login with HTTP Basic Authentication.

#1 
Is this really needed, why not ``var defer = $q.defer();``?