Move location server url to properties
Refactor. Setup security