Description
Since Balance 0.2 (internal JPL release), it has been possible to include content from multiple modules in a single response. This means that the old method of referring to module paths via the constant values (MODULE, MODULE_ROOT, and MODULE_STATIC) no longer work predictably. Since constants can not (by definition) be redefined during the lifetime of a request, a more flexible method is needed to represent module context.
The Application::loadModule() function was introduced some time back to address this, however, the constants were never removed, and there are places where the old and new methods are still used side by side. We need to remove the constants from the core, and update modules to use only the loadModule() syntax.
This issue addresses the problem for the core library. Others will follow for individual modules.