Implement tab completion for mw.command.foo

Also fix and simplify the implementation of mw.command

Fixes #34
1 job for master in 7 minutes and 44 seconds (queued for 3 seconds)