[WIP] Join on issamenode

This is an attempt on implementing join on issamenode. When a relative path that walks UP is given, we have two problems:

* A bug in the sql2 parser: https://github.com/phpcr/phpcr-utils/pull/104
* How to express that in sql? the regexp_replace used below seems postgres specific.