cleanup worker impl for #709; build & unit tests setup; TODO full suite of worker tests & document api