Added method for setting withCredentials. Can be set to either true or false. Assertion added to the test-request-methods.js tests.