Moved the twitter specific code into its own class.