Create requestParsoid method for all requests to Parsoid API

Merges logic for GET & POST requests.

Change-Id: I17578177a6fc28b32f7d41c7ca6e6cf4ccaab9d9
Merge "Create requestParsoid method for all requests to Parsoid API"