Fix null checks in scalatra listener, adds a bit more logging there and uses current threads class loader to load the lifecycle class