Add targets field for annotations and links

This closes bug #30 .