Feature/rails41 support

This PR adds Rails 4.1 support by returning the key attribute as an integer or nil value. As of Rails 4.1 all hstore values are stored as strings and ActiveRecord needs ID attributes to be integers.