Clean up command handler
Created by: dominikwerder
Revisit logic in CommandHandler
, move more towards LLVM coding style and tidy up some json handling on the way.
Also removes some no longer used classes and include file.
Closes #95 (closed) Closes #90 (closed)