Fixed bugs to get it working.

Successfully logged in, sent a tweet and logged out.