[OE-2716] contacts refactoring
[OE-2716] contacts refactoring now reasonably stable, needs more testing.
[OE-2716] fixed sql query mapping of practice addresses
Improve performance of waiting list page (reduce queries)
Merge branch 'release/1.3-moorfields' into release/1.4-moorfields

Conflicts:
	controllers/WaitingListController.php
Fixed missing procedure list
Further reduced query count for waiting list
Use different address relation to avoid collision with practice address
Temporary exclusion of elements without Event (orphans)
Try to avoid separate pas updates for each record
Merge branch 'release/1.4-moorfields' of github.com:openeyes/OphTrOperationbooking into release/1.4-moorfields
Minor cleanup
Remove dead code
Merge branch 'release/1.4-moorfields' into feature/contacts

Conflicts:
	controllers/DefaultController.php
	controllers/WaitingListController.php
	views/waitingList/_list.php
typo
[OE-2716] refactoring
[OE-2716] bugfix to waiting list controller
[OE-2716] medical flag no longer exists on the specialty table.
Merge branch 'release/1.3-moorfields' into release/1.4-moorfields
Merge branch 'release/1.4-moorfields' into feature/contacts
Merge branch 'release/1.3-moorfields' into release/1.4-moorfields