SLING-3889 fix issue where creating a resources fails when deleting it before without committing
refactor unit tests and add a new unit test suite for create/delete scenarios

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