Client side file uploads

Client side file uploads and display of photo on the patient's profile
Merge branch 'berhacker' of https://github.com/hdilink/hdi into berhacker

Conflicts:
	calls/classes/Document.php
	calls/includes/functions.php
	calls/includes/init.php
	calls/includes/tabs/patients/pix_upload.php