Add -stdin to use stdin in commands.  Add to keyvalue. Closes #2.