Made compatible with Rails 4, updated docs
Merge pull request #2 from Azdaroth/master

Rails 4 compatibility