Added tests, refactored JSON return of commands to be something
deserializable into a predictable Java object.