Added automatic saving and restoring access credentials for OAuth and OAuth2 services
Little optimization
Merge pull request #76 from herroffizier/auto-state-restoring

Save and restore OAuth(1,2) tokens to work with apis.