implemented basic splitting, fixed focus bug

Implemented basic vertical and horizontal splitting of panes. Support is added
into the UI widget for easy access by third-party code. Fixed a focus bug in
the select widget.