Adds some comments
Saves session events in an array
Adds a REC button for session saving

Upon page loading, session recording starts automatically. The REC button
allows to restart the recording from scratch.
Allows to export the session to XML with a button

This adds a menu button to export the recorded session to an XML file. The XML
is generated from the events array.