Add toState to possible injecting

The menu might need to know which state is being transitioned to,
so it can link to itself. This adds toState as an injectable value.
Merge pull request #20 from bdo-labs/tostate

Add toState to possible injecting