Upgraded dependencies and files for Rails 4.
Implemented Rails 4 way of protecting attributes for details.
Prepared gem for release.