Add submodule support

Submodules are shown under the "submodule/" namespace.  The necessary
"module-link" command is also added so that links from the
super-repository tree show the correct commit in the submodule.

Signed-off-by: John Keeping <john@keeping.me.uk>