Seperated setting the current state and triggering on change events. Added a previous accessor.
Merge branch 'master' of github.com:JohnPittman/finitestatemachine-js