fixed a couple of small bugs in library widget - assertion failures on click in wrong place
made version upgrading remove obsolete connections
fixed bug in obsolete-connection removal