Round trip for rest api

Created some classes for handling basic rest operations.