Added permit_params dsl

As discussed in #2594, adds a `permit_params` method to the resource DSL.