Added method for setting withCredentials. Can be set to either true or false. Assertion added to the test-request-methods.js tests.
Merge pull request #1 from mwq27/master

Add withCredentials PR from mwq27