[WIP] added support for PHPCR

this is still a bit jacky .. and there are open questions