Disabled Javascript in the OAuth2 dialog, drop tables on logout, some refactoring