save layer order after dragging

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