+ fix audit viewer after refactoring
Fixed exceptions caused by missing USER_AGENT (monitoring)
[OE-3192] fixed audit interface
fixed redirects to / when running in a subdirectory
optimised sql queries, gordan found that logging in and then loading the correspondence create form was taking over 1000 sql queries (!)
Merge branch 'feature/make-gordan-happy' into release/1.4

Conflicts:
	protected/components/UserIdentity.php
	protected/controllers/PatientController.php
	protected/models/Audit.php
	protected/models/Firm.php
+ style fix for diagnosis search widget
Merge branch 'release/1.4' of github.com:openeyes/OpenEyes into release/1.4
throw a more useful error when directories can't be mkdir()'d
Merge branch 'release/1.4' of github.com:openeyes/OpenEyes into release/1.4
[OE-3226] added get commissiong body method to practice model.
Added generic removeElementForm class for displaying a remove icon for removing sub-forms in elements. Refs OE-3228
Merge branch 'release/1.4' of github.com:openeyes/OpenEyes into release/1.4
[OE-3247] fixed rendering of 'info' flash messages
Merge branch 'release/1.4' of github.com:openeyes/OpenEyes into release/1.4
+ fixed redirects for search failures
Merge branch 'release/1.4' into develop