Extracted serialization code out of WebAPIResponse
Review Request #1083 — Created Sept. 19, 2009 and discarded
This stuff can be reused in other pure serialization contexts (namely, webhook payloads), not only in HTTP responses. This is an updated version of the review request at http://reviews.review-board.org/r/982, now using the github repository.
Ran ReviewBoard test suite with it, passed all tests.