Change the way entities are referenced.

* entities are now referenced via their ID
* EntityPool can return an entity via it's ID and destroy it via ID
* Entity is no longer inherited from Statemap, and instead composes it, and forwards calls to it
* Form is no longer inherited from Statemap, and instead composes it, and forwards calls to it