Add a `CommandType` type.
Send the correct `Content-Type` for JSON replies.