Entities now have a unique id that can be used to retrieve them

We use entity groups, so having a primitive type key is useful.
When I wrote that, I intended to use uints for the ids, but that seems complicated to replicate across all haxe targets. uint ids would have meant using 0 as the invalid id (let's say, if you serialize links between entities for whatever reason). -1 will do the trick instead !