Bug 918012 - sync with token server

@rnewman: The first 7 parts are ready for review.  These patches split out pieces that in turn make it easy to build a new `FxAccountSyncAdapter` similar to `SyncAdapter` but intended for Firefox Accounts auth.  That work just needs cleaning before it goes up for review.