Refactor commands.serve to allow other commands to run as services.
This introduces a new function, cmdutil.service.
abort: repository a not found!
255
abort: error: Connection refused
255
abort: repository a not found!
255
abort: destination '../a' already exists
255
abort: repository a not found!
255
destination directory: q
abort: destination 'q' already exists