Refactored; added state property to command struct to notate where in the…
Refactored; added state property to command struct to notate where in the lifecycle of command processing that the command is.
If this direction is decided on, I'd like to further clean up the parser. I think do_command() is now readable in a way it never was before.