Added PATCH support and improved code formatting.
Added an "id" attribute to member links.