Factor command listing code out of __all__
Add unit tests for module loading.

Also add docstrings to new functions.
Merge pull request #141 from jrrideout/death-march

Fixes #137