Issue #222 : only uploading events when app is active, save events plists whenever data is changed, add some logs
Issue #220 : improve the efficiency of executeMajorTask
Issue #220 : execute routine major task when app is entering foreground and the notification system is on
Issue #222 : execute major task whenever significant location changed
Issue #223 : set up background fetch