Moving away from patterns_for() in favor of patterns()

This naming convention might make more sense when subclassing
ResourceView and setting the model_class in the subclass rather than
passing it in.
Added check to set model_class to the class's value.

If no model_class is passed in, see if there is one set on the class.
Merge branch 'master' into authorization
Removed trailing comma
Added common context variables to index page.
Merge branch 'fixup'