Add support for Rails 4.0 and Ruby 2.0 (hash syntax)

Fixes #5.
Drop support for Ruby 1.8, add 2.0