Refactor twitter_api.rb and tweet_updater.rb