dispatch: restore a dropped shlex import
Add test-dispatch as a place for command parsing and dispatch tests.
To run the tests, do:cd tests/python run-tests.pySee http://www.selenic.com/mercurial/wiki/index.cgi/WritingTests formore information on writing tests.