Add support for downloading patches and parsed diff data in the API.
Add support for downloading patches and parsed diff data in the API.

This adds support for new mimetypes to FileDiffResource and DiffSetResource.
Both now support the text/x-patch mimetype, and will return the stored
patch. In the case of FileDiffResource, it's the patch for that particular
file, and for DiffSetResource, it's the patch for all files in the diff.

FileDiffResource also supports new
application/vnd.reviewboard.org.diff.data+json and
application/vnd.reviewboard.org.diff.data+xml mimetypes, which return
the parsed diff data in JSON or XML formats. This includes the
insert/delete/replace lines, move information, and more. It also supports a
?syntax-highlighting=1 parameter for returning data in a form that can
have CSS rules applied for syntax highlighting.

This new diff data resource should make it possible for third party
applications to render diffs without reimplementing Review Board's
diff viewer logic.

Reviewed at http://reviews.reviewboard.org/r/1642/

sgallagher/reviewboard,chipx86/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,KnowNo/reviewboard,atagar/ReviewBoard,davidt/reviewboard,chazy/reviewboard,KnowNo/reviewboard,bkochendorfer/reviewboard,brennie/reviewboard,1tush/reviewboard,atagar/ReviewBoard,chipx86/reviewboard,beol/reviewboard,Khan/reviewboard,beol/reviewboard,chipx86/reviewboard,chazy/reviewboard,custode/reviewboard,KnowNo/reviewboard,chazy/reviewboard,atagar/ReviewBoard,1tush/reviewboard,1tush/reviewboard,reviewboard/reviewboard,atagar/ReviewBoard,KnowNo/reviewboard,atagar/ReviewBoard,1tush/reviewboard,beol/reviewboard,1tush/reviewboard,Khan/reviewboard,chazy/reviewboard,custode/reviewboard,sgallagher/reviewboard,brennie/reviewboard,chipx86/reviewboard,chazy/reviewboard,atagar/ReviewBoard,brennie/reviewboard,bkochendorfer/reviewboard,1tush/reviewboard,chazy/reviewboard,chazy/reviewboard,chazy/reviewboard,atagar/ReviewBoard,1tush/reviewboard,sgallagher/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,chazy/reviewboard,beol/reviewboard,sgallagher/reviewboard,brennie/reviewboard,davidt/reviewboard,Khan/reviewboard,reviewboard/reviewboard,1tush/reviewboard,custode/reviewboard,Khan/reviewboard,1tush/reviewboard,Khan/reviewboard,Khan/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,Khan/reviewboard,reviewboard/reviewboard,custode/reviewboard,Khan/reviewboard,Khan/reviewboard