Back ported TRUNK-3586 Update unit testing environment to use mocks

(cherry picked from commit 6ca3d0b488cdb88a150e79a7baf63e594a46a261)

Conflicts:
	api/src/test/java/org/openmrs/module/ModuleUtilTest.java
	web/src/main/java/org/openmrs/web/Listener.java