Converted robot server and command handler to the new system.
Some touch ups in other places