producer: Implement json producer commands. Cleanup.