Started work on a more general serialization based meta protocol.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>