trunk-3987NEW(1.8.x)

I have modified the changes .
changes to Trunk-3978NEW(1.8.x)
after doing mvn clean install
Merge pull request #572 from suraj5/Trunk-3987NEW(1.8.x)

trunk-3987NEW(1.8.x)
changed the description to match the current code
Merge pull request #579 from suraj5/Trunk-3987NEW(1.8.x)

changed the description to match the current code
TRUNK-3644 Define which resources to load for module based on OpenMRS version

(cherry picked from commit ee0d7cafb2816d3a216651c3efb607dc4b28cae0)