Reworked CommandHandler to store Command objects rather than class names.