Move some of the link related methods to the document link manager.

Change-Id: I9b4a3f31bd973a2b57fae5b44d98258ddad731f1