Remove dependence of reports on sql.php,
this includes changes to let reports load include files from a configurable directory (potentially) outside of the web root that can be shared between sub-domains, to prevent resource duplication on the server.