improve position implementation to support overlay which have extenal offsetParent
new feature and improvement

* new feature: reposition when widow resize
* Popup: use event namespace to bind events, and clear events when destroy