refactor to allow override of controller name

and also upgrade to the use of request->is('ajax') instead of
RequestHandler->isAjax()