Refactor gridLayer
Merge branch 'v1' of github.com:mapbox/mapbox.js into v1