refactored QueryEvent dispatching and error handling [#77882902][#76473928]
mechanism for Twitter user authentication [finishes #76738056]