Use multimethods for serialization. Each platform implements these.

Add two methods, pigpen.runtime/pre-process and pigpen.runtime/post-process for platforms to implement serialization.

cc @pkozikow