Implement Twitter signin.
Clean up authentication and add integration tests.