Rails 4 support.

I've made changes necessary to use proposal in Rails 4.

This includes changing the dependency to `rails ~> 4.0`, so it will currently
refuse to run in Rails 3.x.  It could be relaxed, but testing across Rails
versions would be required. I'd lean towards requiring Rails 4, and users of
Rails 3 can stick to the older version, as per the updated README.