Implement first draft of command-line tool, with partial test suite.
Implement first draft of command-line tool, with partial test suite.

(Whoops. Forgot to commit as I went.)

ssokolow/saveswap,ssokolow/saveswap