split up state.xml into multiple parts

- state.xml : main file
- state_2d.xml.h : 2d state
- state_3d.xml.h : 3d state
- state_hi.xml.h : host interface state (registers)
- common.xml : shared bits between state.xml, cmdstream.xml and isa.xml

also beginnings of automatic state management, currently for RS only