save layer order after dragging

Fix for https://github.com/mapbox/mapbox-studio/issues/977

TODO:
- [ ] figure out how to write tests for this.