Clean up and structure code better.

- Fix jittery map scrolling
- Separate map data to json
- Loading sprite sheet meta from file