Use Ruby 1.8.7
Put dependencies into a Gemfile
Use PostgreSQL instead of MySQL
Add Procfile
Add hacks to get Rails running