Enhancements for New Document and improvements in patient report and patient portal. (#687)
* Add selecting patients in New Documents.
Toggle document viewer option to expand into entire frame.
* New tag for templates that flags if EOL should be handled as html or text parsing ie nltobr.
* Added better error checking to patient report pdf download.
Allow practice logo for report header to be either gif,png or jpg.
* Added check for valid utf8 encoding before committing report content for parse.
Fixed patient pull down to show only in New Documents.
Code cleanup.
* Binding term in sql
* Removed ini setting php display errors.
* Missing flag implemented.
* Changed pdf and esign style dependency path to uri from file path.
Added catch exceptions from mPDF.