Implement the writing to the pipeline

This uses a custom wire format
Implement the self touching of the pipe on shutdown
Merge the variables