Export buildUrl in the global angular namespace

buildUrl could be used outside of $http too, for example if the user needs
to create urls for APIs that are not natively supported in angular (EventSource for ex.)

potentionally if it's not hidden in a closure inside $http,
it might be used in other parts of angular too