use RestClientInterface instead of RestClient
handle all http success status codes appropriately
register uploads
fix types in phpdoc
unit testing the api
use empty arrays as default for array argument types
fix merging of encoding filters