Add support for columns as the primary divider

Currently, rows are the primary divider, so you cannot have a setup where you have two panes on the left hand side and a single pane on the right hand side.  This change supports using columns as the primary divider so that this can be done.

The change is backwards compatible and configurable.