implement debug.draw.framecount
move stage debugging logic into separate object
implement debug.draw.events for mouse events
move more debug functionality into debug object