Improved standalone script generator.
Added note to README re command resolution vs dispatch time.

Also modified library to return value from subcommand back to caller of run,
rather than calling exit directly. Now the multi-exec script calls exit, with
the value returned by the subcommand through `run()`.
Added Commands tests and fixed dispatch code.