TRUNK-3644 Define which resources to load for module based on OpenMRS version

Apparently TRUNK-3644 was not ported correctly to master so I'm doing it right now.