Adding conditional support for Rails 4 strong parameters.

Here's a stab at adding conditional support for Rails 4 strong parameters that shouldn't break backward compatibility with Rails 3.