This extends the statecheck class functionality by adding
functionality for cmdutil.STATES. After this STATES list will
not be required and hence is removed. statecheck class can now
deal with the functionalities of both APIs.
The work of STATES is taken by statemod.unfinishedstates which
is a list of the objects from statecheck class.