Allow user to select direction of connection

Sorry for mentioning this so late, but this looks like a duplicate of the helper in the actual source. Maybe it would make more sense to have this arrow helper be an independant, resuable helper, test it, then use it for both the connection layout tests and in the connection layout source. Thoughts?