Solidify state subclass handling, add documentation for state and dragstate
t staMerge branch 'master' of https://github.com/teem2/dreem