adds an fallback for APPLICATION_DATA_DIRECTORY

as described in ticket TRUNK-3934: in some deployments using an application server such as Tomcat, we can not write to the current users home dir and instead should use a more generic and/or appropriate path
TRUNK-4160 ProgramWorkflowService.retireProgram always throws Exception
TRUNK-4160 Review comments
TRUNK-4146:add unit test to prove return distinct drugs when search parameter match multiple times with drug_name
TRUNK-2147: Changed html input text to spring:message
TRUNK-2147: Fixed property name truncate error
TRUNK-2218: remove direct method calls in PatientServiceImpl.java
Merge pull request #531 from dkithmal/TRUNK-2218

TRUNK-2218: remove direct method calls in PatientServiceImpl.java
TRUNK-2218: remove direct method calls in CohortServiceImpl class
TRUNK-2218: remove direct method calls in ConceptServiceImpl class
TRUNK-2147: Svae message fixed
TRUNK-2218: remove direct method calls in EncounterServiceImpl class
TRUNK-2218: remove direct method calls in FormServiceImpl class
TRUNK-2218: remove direct method calls in LocationServiceImpl class
TRUNK-2218: remove direct method calls in ObsServiceImpl class
TRUNK-2218: remove direct method calls in OrderServiceImpl
TRUNK-2218: remove direct method calls in PersonServiceImpl class
TRUNK-2218: remove direct method calls in ProgramWorkflowServiceImpl class
TRUNK-2218: remove direct method calls in ProviderServiceImpl class
TRUNK-2218: remove direct method calls in VisitServiceImpl class