Restructure so that registered actions are processed independently of show call (which is now skipped in cli, since rendering html views there doesn't do much good)