Adds withCredentials option.
Drop conditional, just set args based on value.
Merge pull request #1 from mbleigh/with-credentials

Adds withCredentials as option to core-xhr and attribute to core-ajax