Renamed api.dom.Window to WindowDOM to avoid name crash with lib.Window
Added handy functions getParent and getTopParent to WindowDOM