api bug fixes
many fixes, changed deleteAll API to accept query params instead of request body, added tests to the REST client