[WIP] Replace cmd_rules and m_opermotd with m_showfile.

This is nowhere near finished but I am filing this PR early to test whether @tobgen has fixed Jenkins.