Added "store" and "submit" commands to the command-line client.

I separated this from the previous pull request (now canceled) since this can be included in an earlier version.