Changed Gemfile

Added ruby version, changed to postgres and added rails_12factor for
production logging on heroku.