Changed command-parsing control flow from if()s to switch cases.

Much easier to look at.  This task screams switch cases.