Move syncOfflineAnalytics into service, closes item:785