- add unittests to cbapi
- update REST endpoints to match 4.0 endpoints
- avoid overriding some optional parameters with constants
- additional commenting