Implements JSON mechanism for operations.

In addition, a missing_cmd handler can be added to the server for default behaviors. This
helps out with testing.
Test defining a command and when a command isn't found.

This includes a fix found with how errors were being sent back.