Refactor code that talks to EAS server to new base class.

Two reasons for this:
1) It lets us decouple Ping from the SyncHandler family.
2) Account validation also needs these functions but
   shouldn't be a SyncHandler.

Change-Id: I0c56ead551d3c3cdc34c2c78e3bad62fad8be25b
4 files changed