Document on_unknown_command, log, done and api_request methods.