set the current thread context class loader so that the jcr repo services are properly found by vault.  also fixed logging so that errors are properly found and reported.