Adjusts route ordering, adds collection html rendering, and adds tests.