RestClient refactor. Add endpoint, version variables. Change constructor scope. Refator MockClient and example program appropriately