Window cloning

This adds the file js/misc/windowUtils.js, including a function to create clones of windows and their respective transient windows.

The function is used by Expo, Scale and Alt-Tab for their preview windows.