Added ability to switch windows by clicking on them.
Added clipping option to window.
Refactored test code into own classes.
Updated test code to be up to date with the changes in the surface.py
code.
Added resize window call.