First pass

modularize scaffolding for node cluster

currently projects like cn, rtapi, ncar, pds all have a variant of this

please provide opinions

@Raynos @mrhooray @jsu1212 @kumikoda 
Yea my only concern is if there are fewer logical IDs provided than this.numCPUs. I'm open to further thougthts/better ways of doing it