Utilize attr_accessible if defined for the model

In Rails 4.0, attr_accessible was moved to a plugin, this will test if accessible_attributes is defined before trying to add it.
Use respond_to? checking accessible_attributes

respond_to? will return a boolean vs. defined? returning a string, so this is a bit cleaner.