Create a new 'Link' entity to handle linking entities in complex ways.

This functionality was previously handled by the Annotation entity, but
that was becoming much too complicated.