Implement automated stacktraces for exceptions.
Use TLS for last exception stack trace.
Updated auto-discovery script and added some more service templates.
Catch exceptions in EventQueue::QueueThreadProc.
Remove redundant check for valid task object.
Fix: Set last state/state type before executing service checks.
Update validator for services dictionary.