[document] Start working on module

Still needs a lot of work, like accounting for multiple commands and so
on, but this is a start. Maybe it ought to use enumerate_modules and imp
to get commands, rather than the doc thing. Or maybe doc should be
changed to accomodate this?