protocol: minor fix
entity: slightly cleaned up entity handling
entity: fix ticking
all: Change event handling
world: support time and world unloading.
Also fixed some data races