Dynamically generate list of resource modules

This allows for extra/custom resource modules (such as UC's Course
Materials) without hard-coding them, and thus without breaking on sites
which do not have those modules installed.