Add the basics of stanza processing and event handling to the component