Added Panes

Abstracted a window element and created a pane. Now a window inherits
from a pane.