Implement patch support for WS partial updates, via a Patch header. Additional cleanups.