refactored EasyRestCall & GenericRestCall classes to share codebase