Move utility commands into the mod assemblies.

#6289 plus fixes for the review comments.  This is the first in a (long) series of dependencies for the next set of TS engine work, so I would like to see this feature merged before the next release.