Refactor RestContext::iRequest() for readability

Use chaining and individual calls to set header and request body rather
than
passing all params to the get()/post()/put()/delete() call at the start