Implemented base of command interpreter.

In daemon mode it is not used and the program will just sleep for 10 seconds.
In foreground mode it will present a shell that accepts the single command
'quit'.