Fix plugin controllers not getting the correct modelClass.

* Use the plugin property to correctly set the modelClass property for plugin
  controllers.
* Clean up a bit of dead code in test stubs.

Refs #3665
Add docs and missing property definition.
Merge pull request #3679 from markstory/issue-3665

3.0 - Fix plugin controllers not getting the correct modelClass.