Ported the node validation logic from Doctrine-Dbal

Ported the transport agnositc node validation and processing logic
from Doctrine-Dbal to Jackrabbit.