Lots of changes - moved controller code to a service so the Lat and Long is available to all functions;  Added promises instead of callbacks