Fixed the line drawing on mouse down on a port.
Basic linking works.
Links are not updated when the actor moves....
Also cleaned up the code.