Added proper support for storing window parents in the server. Added a few requests to query the window hierarchy.