Backend geolocation functions complete. Merge into master branch.