Extract REST API protocol objects to a separate module.
* enables protocol object reusability by future REST unit test