Add Login and Logout Callbacks.

This might be useful for applications that rely on OAuth2 Login that need to save the token to a DB or related.