Merge Pane functionality into Component.

Work in progress.