Update lib and add parameters for proxy and default endpoint

Change-Id: I34d81272ea69d7413e60db958d1c6a763852ec24