A fix to the Request class so that the REST object is cleared every time a new request is made. If it is not cleared then unexpected results will occur due to things like parameters not getting reset etc. Specifically, this change fixes an issue where the URL would become too long if the object makes a large number of requests.