Upgrade Rails to 4.0.0, and only use postgres in production