Refactor: label, element and link now have single parent;
Implemented link insertion (beta);
Connection dialog
Fixed closing bug