* remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix