Added optional object state section for object defs.
Added parsing of object state section.
Added support for RT object states that are defined in the objects.xml.
Changed parsing and factory implementation to take newly added state
sections into account.

Object states determine (currently only) the animation sequence and can
be triggered by other object collision triggers. This way we can player
anim state changes being triggered by collisions with specific objects.