Make link inspector re-usable by splitting it up

Objective:

* Make the majority of link inspector, which is generic to any annotation,
  usable for other annotation inspectors

This was merged earlier (f7107fa20dc0) but broke master, so it was
reverted (092fa74deef). This commit also incorporates 5dcf5d1c49082d.

Change-Id: Ib9190dee66ce064d69962f9c4c5b3a710be8ad07
Merge "Make link inspector re-usable by splitting it up"