Rails 4.1 upgrade

This is a PR on @bdejesus fork. So (in theory) you should be able to easily pull in his PR and than this one on top of it. Right now the PR is huge, but after #44 will be pulled in it will be much smaller.

I also added Unicorn - I don't know what your stance on this is, but it works very nicely for us on Heroku.