Context for emit is now the fsm. Fixes #13
Removes bug where you could transition back to the same state you were already in. Fixes #14