Created executeCommand.c

executeCommand.c cleans up a lot of the redundant functionality that
was in handleCommand.c