Updates that work with rails 4 

I had problems with this gems using rails 4 on heroku, so I forked a latest fork of your gem and add compatability for rails 4 )