Add OAuth2 exception handling, and update gittignore