Refactoring for packaging (WIP). Adding node delete from jenkinsapi (WIP).