Add support / tests for Rails 4.0

Resolves issue #28
Add tests for Rails 4.1

Resolves issue #29