Upgrade to rails 4
First attempt
Fix deprecation warning, add backward support for rails 3.2
We need to support rails 3.2
Merge pull request #3 from listia/rails-4.0

Rails 4.0