Properly inject $window to access Google Maps:

- Inject `$window` in all places where `window` was previously being called
- Wrap 'bindMapEvents' into a controller so that `$window` can be injected into it