SPC-845, add collapsed state to history management
Fix SPC-840: ospf discovery failed

Added a test an a better logging.
This was fixed avoiding uniqueness of
node/ifindex on datalinkinterface table

Conflicts:
	opennms-services/src/main/java/org/opennms/netmgt/linkd/AbstractQueryManager.java
Merge remote-tracking branch 'origin/space/13.2'

Conflicts:
	opennms-services/src/main/java/org/opennms/netmgt/linkd/AbstractQueryManager.java