GUVNORSOA-47, merging ModeShape Integration, reuse an active JAAS session. I've put the login in our JCR API since it seems to be different to do this for JR andMS.
GUVNORSOA-47, merging ModeShape Integration r35624, converting the guvnor code and tests over to use the jcr-api. Most of the work is around making each individual tests start and stop the repository