PHPCR: fix id in filenames + added PHPCR generator to use the path from a media object