Improve sync logic.

- Always request FolderSync when the account hasn't synced
- Change the account broadcast receiver to only initiate
  FolderSync for accounts with all syncs disabled.
- Add a mailbox type filter to ONLY sync calendar/contacts.
  Type filtered sync does not trigger FolderSync.
- Do not sync non-enabled types when syncing multiple folders
  (i.e. for account sync, or for type sync).

Bug: 11081520

Change-Id: Ic98e43a9fa3ed46d0597c348a5823d1accab7045
4 files changed