Beginnings of analytics to frontend
Some more analytics work
Undebugged analytics
Added analytics events to most crucial paths. Fixed one problem with authentication, that might have caused the problems. Moved polling back to MainController, added listening to resume/pause Cordova events. Fixed double update task/note/item on quick edit done.