Add configure.ParseArgs.

This one takes explicit args, instead of just using os.Args, mostly to
help with testing.
Start adding some tests for config.go.