Helper class for post and get requests.
Moved request sending part to separate class.