Add garbage collection to the resource mapper

The garbage collection methods deletes all objects where the predicate of the entity description stored in the user info with the key RM_GARBAGE evaluates to YES.