Allow options to be passed to state creators

We often are in a situation where one state needs to tell the next state something.