Added a new shortcut function to ControllerBase class. Added try-catch to all send email code.
Bugfix: No events are recorded in webprofiler (bug 40 in the repo).