Optimise API

Reduce JSON size and transfer processing to server
Minor update to API
Merge branch 'dev' of https://github.com/Maprunner/rg2 into dev