line connects to nearest available outlet

 - when you mouseover a function group it checks if there is  an
available outlet, and shows which one it is by scaling it
- when you click on a function, it connects the line to the nearest
available outlet.