Made the Request abstract to simplify multiple REST api requests

It made more sense to make it a simple abstract helper class to
perform different types of REST API requests.