Implement location model and endpoints
Minor clean-up