Twig module author extensions (#4715)
* Twig module author extensions
Added a twig extension to fire a generic event. For now that is helpful
in being able to migrate over some of our php/html files that dispatch
render events.
I also added a twig environment event that module authors can hook into
in order to extend the file loader and load their own template files. I
put an example in the twig environment event header of how to go about
doing this.
Also created some generic error handler pages with an example 400 page
so we can start having nicer looking error handling pages for when
things go wrong in OpenEMR.
* Fix spacing and imports