Cleanup and rename all cmd_* functions/macros to md_* so we stop saying “command_”.
* TODO? move all md* functions to a new module.