[POC] Added support for embedding the shell

Enables the PHPCR session to be set externally and provides a more minimal application which can be envoked from a "parent" application.
remove this