Rewrite using a tree to manage states
Update README to use new API
Rename router.route to router.add
Add tree-like state definitions
Improve state definition API
Fix typo in README
Update example in README
Add before hook to state handlers
Fix transition return value