Refactored twitter authentication into general authentication. Client doesn't need to know how it's authed.