Migration to rails4

Migrated to Rails4, was less painful than I expected. Fixed all the errors and typos. And it seems to work
![](http://img-9gag-lol.9cache.com/photo/azb1QdN_460sa.gif)