Add ability to pass arguments to actions.

As an example, allow the 'write' action to print user@host names if
'user' is specified on the command line.

I eventually want to use argparse subparsers to handle this, but I have
not yet figured out if I can keep the action name optional somehow.