Began refactoring of Command system

Began refactoring of Command, CommandFactory, and the logic behind it.
QuitCommand implemented with the new way.