Refactor to callback into javascript during sync.  Implement standard location services for background when detected to be moving, significant-changes api when stopped