policy-node: lookup the proper peer link when handling linkable
Previously, we were always looking for the first available link on the item, which could lead to problems if the item had more than 1 link (eg target and monitor links). Now, we keep the Id of the last target in order to determine if the item is linked to the proper target when rescanning.
Fixes #77 (closed)