[REST] JSON support for /rest/headers

also includes REST documentation update for /rest/headers