Added resize function
Massive rewrite

Reworked event system.
Reworked map/entity handling.
More consistent api
Collision detection, world + entity signals