setup the basic to authenticate with twitter using oauth and control switching between a loggedin and loggedout state