Use multimethods for serialization. Each platform implements these.
Merge pull request #73 from Netflix/generalize-serialization

Use multimethods for serialization. Each platform implements these.