Events upgrade 1

Logic bricks now keep their python reference.
Also EventTests.py shows what you can do with events.