Application Framework and Survey Data Pane

More work on the application framework, plus a simple tree view pane showing survey lines.

Not ready to merge yet.