Smart train stop enabler

Enable the train stop only when there are enough items in the buffer chests to fill the train or if there is enough space in the buffer chests for a full train to be unloaded.

Connect all buffer chests and the train stop to a circuit network like this: