This is what is really common

Now that we are about to have a second command, we know which parts are
actually common.  It's the output parts.
Add submit command

Reads a binary transaction from stdin and prints it out.  With -submit,
sends it to the network.