Merge pull request #124 from codeforamerica/116-update-map-markers

Fixes #116 - updates map markers
Merge branch 'master' of https://github.com/codeforamerica/trails-mobile
Updates transition to use transform3d

Moves transition back to transform3d from top to that the browser
composite layers the transition instead of doing a layout step.
Removes angular-gestures

Angular-gestures add mouse move listeners, as does leaflet, so these
are firing twice for any movement on the screen. Since gestures aren’t
heavily utilized nor are essential for interacting with the app, this
commit removes them at this stage in development.
Removes bindEvents function

Moves the body of the bindEvents function to the onload function, as
that’s the only place it’s called, so the call to a function isn’t
necessary.
Fixes #103 - removes unused functions

Removes unused functions in controller.
Eliminates loop in onload

Two loops through the trailhead markers was occurring, once to generate
the map markers, and once to bind the click event with the marker. This
commit consolidates those loops into one.
Ensures trail view always shows when needed

The trail view was not showing when clicking a trail in the search view
it had already been showing when switching to the map view. This commit
maps it so the trail view always shows when selecting a trail.
Removes initial clearSearch()

clearSearch is called on application load, but search(‘’) is also
called, so this commit removes the clearSearch() call as it should
already be handled in the unload.
Fixes #113 - Filter Tap Performance

Tapping the filters was taking a very long time because the code looped
through all trail segments on each click. This update turns the filters
into a bitmap, so that all four filter values can be stored as a single
integer and bitwise operators can be used to switch them on and off and
check their aggregate value. The values are also stored so they don’t
need to be looked up each click of a filter.
Code cleanup
Adds JSHint + Code cleanup

Adds JSHint to Gruntfile and performs general code quality cleanup.
Merge branch 'master' of https://github.com/codeforamerica/trails-mobile
Merge branch 'performance-updates'