BZ-1021886, BZ-1001972 - Support for deployment operations in the (kie-remote) REST API

- Added tests
BZ-1021886, BZ-1001972 - Fixes for race-conditions in deployment operations (see tests)

- also some small API fixes for the Remote Java Api and the RestRequestHelper class