Added event handling to object and a new tree-like sceneObject class

As discussed in #20.