Add AsyncCommand (but only if we are in the GUI).

The terminal is not commonly compiled with ClientServer, and we can just
use terminal multiplexing to build in the terminal.