add support for returning module contents as HTML
Adjusts route ordering, adds collection html rendering, and adds tests.