Fixed a sync bug - the notifications needed a count not trim to see if any...
Fixed a sync bug - the notifications needed a count not trim to see if any existed. That bug must have been around for a bit. Also added a couple ot Util methods to perform account stuff getAccount and deleteAccount. We now also delete the old account if any authentication details have changed. Also the sync process has some new logging and the order (if not noticed from last commit) has reverted back to sync then upload - I found a bug with the token changing midway through a bunch of uploads (may need to check how frequently the pref value is checked if a sync happens mid upload).