added state apis for the plugin
implement the setState method
store the name of the date to o.stateKey variable
change status to state
set the starting state to decompressed
fix bug in setting state