#697 separate uploading from saving, so that we can explicitly upload events when app is in foreground.
#697 upload events in background when location changes significantly