SLING-3741 - When processing deleted folders, check for a covering
aggregate higher in the filesytem hierarchy

Prevent infinite loop in
ResourceChangeCommandFactory.findSerializationDataFromCoveringParent

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1611171 13f79535-47bb-0310-9956-ffa450edef68
SLING-3764 - Incorrect resource processing order - directory artifact
processed before primary artifact


Only set a FileInfo for actual nt:file nodes and make sure the filtering
is done as late as possible, when we know the repository paths.

Also, do not directly process nt:resource nodes but rely on the parent
nt:file

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