work on #49

- move EventRouter into lib
- add global click listener to ensure hash links trigger router