Reorg for writing the JSON
Move yet more code to objectlib.
Initial commit
View revisions
Also available in: Atom