Rails 4 support

Added Rails 4 support (#11)

It's still backward compatible with Rails 3.1+

Thanks,
Konstantin.