Integrate selections in map pane with the application task

These changes allow the map pane to share and interact with the main application task, displaying and changing the selected lines.

A known issue is that a double click doesn't propagate the currently edited line to the main application and the editing pane.