Split Pane module into separate files

The original was unwieldy and difficult to navigate while working on it.

Based on #273, that would need merging first.