Add support for hash change & state change

* Improve support for multi windows
* set "disabled: true" for button's default state
Improve entry URL generator