Update jshintrc.
Do no do a global transition if state is not registered.

Other small fixes.