Updated the code to make it work with current Twitter gem.
Updated the Gemfile to recent versions