Small lib for handling multi-phased processing in scala