BATCHEE-11 adding lifecycle handling + classloader building in cli