When non absulte url is given, add http as default scheme
remove usage of glog
Handle errors from http client