State: Index containers by ID.

Containers are now indexed by ID. This makes updating the state from the
engine much easier (for instance, to unregister a container right after
a removal, before the update state loop has time to actuate).
API: Container removal support.