Better formatting of events in debug interface
Moved bootstrap code to a seperate bootstrap module.