added Gemfile and updated gemspec
do not depend on ActiveSupport and always use JSON

as ActiveSupport::JSON::ParseError is not defined in Rails 3