added error handling to REST API
Merge branch 'master' of github.com:Cyclehack/cycle-map-stats