Use multiple resource trees from imported static modules.
Changed ModuleResource API to be more consistent.
Adapt and enhance tests for resources in a full static build.