Added the beginnings of event handling. Compiles, nothing "runnable"
yet.