Cleaned up the AppWindow constructor by extracting 2 methods, and deleted the Rectangle.xmlNode() method, since it most likely won't be very useful.