Add pj() helper function.

The pj() function is helpful in interactive console scenarios, and
general debugging situations as well.

Refs #4791
Fix failing test cases and add missing classname.

Also make pj() not output when debug is off. This makes it work like
other debugging functions (pr, debug, stackTrace)

Refs #4791
Fix some docblock typo
Remove unused variables.
Fix some docblock type
Fix doubly inflected variable names in controller task.

Variable names should not be doubly inflected.

Refs #5002
Make method name better represent what it is going to do.

Refs #5002
Consolidate doc block headings.