SLING-3901 - replication triggers to substitute rules, allowing separate and k-v config

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1627757 13f79535-47bb-0310-9956-ffa450edef68
SLING-3962 - package events generated consistently

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1627771 13f79535-47bb-0310-9956-ffa450edef68
SLING-3962 - package events generated consistently

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1627773 13f79535-47bb-0310-9956-ffa450edef68
SLING-3901 - some missing changes from marius patch

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1627774 13f79535-47bb-0310-9956-ffa450edef68