Added an EventEmitter.
Events are now sent when a block is created or destroyed.
Started to improve the way we inject code into the HTML, needs a lot of work still.