TRUNK-4015: Application data directory should include web app name

Added feature to create different app data directory for different web apps as per the discussion in the ticket
Set log4jExposeWebAppRoot to false so to avoid webAppRootKey clashes per web app

Set default database name to webapp name e.g. test-deploy.war results into a database called test-deploy.
Fix line endings
Squashed commit of the following:

commit a1db833d42386fd29376f9d456da87f8603c9183
Author: Lluis Martinez <lluismf@gmail.com>
Date:   Fri Sep 19 21:09:56 2014 +0200

    Removed addProxyPrivileges not needed. Starting modules from controller
    uses new sort method.

commit ffde3c99f0c82a0d8dde150f91feaf00766b3184
Author: Lluis Martinez <lluismf@gmail.com>
Date:   Thu Sep 18 23:02:07 2014 +0200

    TRUNK-4487 Module architecture fails to populate aware_of modules in
    ModuleClassLoader if they start in the wrong order
Unit test for the Graph class
Remove not null constraint on the description column/property for all OpenmrsMetadata objects
Added a separate error message when locale is blank on the localesAndThemesFormController - 377
TRUNK-4360: Links formatted incorrectly in help.jsp
revert changes to allow multiple identifiers with same identifier types TRUNK-4293
Merge pull request #1104 from jbuczynski/TRUNK-3474

TRUNK-3474 Remove not null constraint on the description column/property...
TRUNK-2888 - Retired states should not appear when enrolling patient to a program
Merge pull request #1123 from jkondrat/TRUNK-2888

TRUNK-2888 - Retired states should not appear when enrolling patient to ...
TRUNK-2801 - Fixed an exception when deleting program with enrolled patients
TRUNK-3564 - Fixed AddressTemplate not updating properly on global property changes
Merge pull request #1124 from jkondrat/TRUNK-3564

TRUNK-3564 - Fixed AddressTemplate not updating properly on global prope...
Using correct class names for the unit tests in - TRUNK-3912
Obs should have a pointer for the form_field it was created through - TRUNK-2069

Cleaned up the code - TRUNK-2069

Cleaned up the code - TRUNK-2069

Cleaned up the code - TRUNK-2069
Applying auto format changes
Merge pull request #1126 from jkondrat/TRUNK-2801

TRUNK-2801 - Fixed an exception when deleting program with enrolled pati...
TRUNK-3717 Display the inherited roles when searching for users by role under User Management
TRUNK-4044 - EncounterType and EncounterRole names must be unique