Add support for Rails 4.1

I've manually tested a very small amount on Rails 4.1 and 3.2 and it seems to work OK. 

Would like to add some specs though and for it to be tested a bit more.