TRUNK-3182:Use Spring's method injection to set the dependencies for the message service

https://tickets.openmrs.org/browse/TRUNK-3182