Added a Pipe class and some tests around it

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>