Large refractor, removed pipes

Implemented some high speed serialization stuff courtesy of @Gabriel439
and half way through implementing my own socket wrappers