only use attr_accessible if it's supported

Rails 4 doesn't define the ActiveModel::MassAssignmentSecurity constant,
but there is a gem that allows it to be used. The models will now only
try to use the functionality if the constant is defined
Merge pull request #346 from cwoodcox/rails-4/attr_accessible

only use attr_accessible if it's supported