Issue #17: Stylistic changes.

Accept header now handled in a single function per REST endpoint, as suggested by @eric239.