extracted core functionality, KitchenSync now exists as a reference
implementation.
build cleanup
build improvements