Clean up ControllerBase
Clean up ControllerBase

Authorization checking moved to its own function and using
reflection instead of get_class.
Invoke was massively restructured to reduce complexity. Including
the creation of doCreate() doExceptionMessage() and preg_grep_keys
to split out previous functionality and debug logging was removed.

jacobalberty/Pearly,jacobalberty/Pearly