Added a simple toggle button demo
Added loads of new tests.
Added addCurrenState()
added defaultFunction stuff for addStateMethod()
Added before() and after() function calls to the root (probably won't cascade to all substates (yet))
Rewrote test for skipping generations for nested function calls.