Enable periodic sync only when syncable accounts are present (bug #821604)

Implement enabling/disabling sync when accounts are added and removed, as per https://bugzilla.mozilla.org/show_bug.cgi?id=821604