Simplify windowtracker due to improvements in Hammerspoon
Fix bugs related to layout tree