added oauth2 library. refactored the Automatic class to work with the new official API.