Distinguish between source and target links using a class

Add a few helper methods to make working with link pairs easy

Change-Id: I630c1ef05038c77f67725e488862b2ea4370ee8e