Module polishing, thanks @todb-r7.

Two test-apps (Rails 3/4) are available for this module. Ping me if you want to use them.