added support for global configuration of credentials on $http service