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 
`j` appears to be redundant with `i`. Was there originally a case where they would get out of sync?