[OE-2664] first bash at standardising the way javascript is passed through from the controllers.
Merge branch 'jira/2664' into release/1.3-moorfields

Conflicts:
	assets/js/module.js
	controllers/DefaultController.php
[OE-1819] fixed selection of patient/gp in the cc field when the text has been manually removed.
+ js vars setting for print
Update copyright message
[OE-2674] fixed a crash when the examination module is in the yii config but not the database.
Use canPrint
Fix metadata formatting
Merge branch 'release/1.2-moorfields' into feature/accesslevels-1.3

Conflicts:
	views/default/view.php
check canPrint
Merge branch 'release/1.3-moorfields' into feature/dr-function