Added gamestate tracker

Keeps track of all entities and entity changes.
Only very basic functionality at the moment.