Use $window.Firebase instead of global

As recommended in the docs https://www.firebase.com/docs/web/libraries/angular/guide.html#section-beyond-angularfire
Simplify testing setup
Add URLProvider tests