Code refactoring, prep for contacts/calendar.

- Move the mProtocolVersionDouble to base class, and
  clean up how it's cached.
- Decouple outbox sync code from folder sync code.

Change-Id: Ia160111ec644295773feb72533a01f8af3032a41
6 files changed