fix subtle getEnd/hasEnd bug
clean up logging, make sure config environment works when /opt/opennms/etc does not exist
Fix for NMS-6359 - Issues with store-by-FS and generic resources only.

The lazy loader used in NodeResourceType was assuming the old convention
when searching for child resources. This loader have been refactored in
order to use the proper methods from the OnmsResourceType
implementations to obtain the list of children.

Added a method called ResourceTypeUtils.isStoreByForeignSource to avoid
checking for org.opennms.rrd.storeByForeignSource from several places.
Merge remote-tracking branch 'origin/1.12'

Conflicts:
	opennms-dao/src/main/java/org/opennms/netmgt/dao/support/NodeResourceType.java
	opennms-services/src/main/java/org/opennms/netmgt/collectd/DefaultCollectionAgent.java
	opennms-services/src/main/java/org/opennms/netmgt/threshd/CollectorThresholdingSet.java
	opennms-webapp/src/main/java/org/opennms/web/controller/ChooseResourceController.java
	opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultResourceService.java
add explicit postgresql dependency
Merge remote-tracking branch 'origin/1.12'

Conflicts:
	pom.xml
Reworked Linkd Tests according with the new model

The links now are saved distinguishing the discovery protocol
Merge branch 'master' into features/TS