Huge dump of untested deserialization code

(hey, it's still early in the project)