Show modules last in index

This pull-request contains an additional index usability improvement not originally discussed as part of #745, to display the list of modules after displaying the list of classes and interfaces, etc. I've therefore created it as a separate pull request since it wasn't approved by @hegemonic before he left on vacation.