Minor API updates and increased robustness of RestClient