reformat code
If logged in should display only my locations
refactored tests for locations api
Fixed randomly failing user tests
merge and fix formating issues
separated url prefix into config factory for easy customization
Fixed CORS problems, put all urls in config
reformat code in server
Merge pull request #335 from jjmerino/master

Protect Location routes, added tests and reformat code (spaces)