Added export for demographics, history and referrals.
Add P option for LBF layouts to default to previous value. Fixed data save bug.
Fixed some facility handling bugs in the calendar.

Conflicts:
	interface/main/calendar/index.php
	interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html
	interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/orig_default.html