Function runs the active command.

        Args
        ----
          command (glim.command.Command): the command object.
          app (glim.app.App): the glim app object.

        Note:
          Exception handling should be done in Command class
          itself. If not, an unhandled exception may result
          in app crash!

def dispatch(self, command, app):
        """
        Function runs the active command.

        Args
        ----
          command (glim.command.Command): the command object.
          app (glim.app.App): the glim app object.

        Note:
          Exception handling should be done in Command class
          itself. If not, an unhandled exception may result
          in app crash!
        """
        if self.is_glimcommand(command):
            command.run(app)
        else:
            command.run()