* Add Session class and expose it to JS * Add error property on the sync config object for the event handler * tests * refactor access token refresh * chrome debugging