Handle missing appId and appKey gracefully; allow missing restApiServer
Use HttpClient interface instead of CloseableHttpClient implementation.
Pull request from chrishenzie