Untested prelim code for pipeline when using minibatch.
Remove sync block at layer level and add sync block at OutputLayerProcessor. Pipeline works. Tested. But can ANN freeze without runtime error when setting batch size lower than 400. Need to fix. Suspect deadlock somewhere... sigh