BeforeDraw event to plugin

i'm gona make a new plugin (security hash) and i needed this event before drawing template.
Merge pull request #57 from amunhoz/patch-10

BeforeDraw event to plugin