Refactored Converter to make it more extensible

- Minor refactorings to make the class more reutilizable

Made in association with: https://github.com/phpcr/phpcr-shell/pull/68
that looks wrong.