Add withCredentials option. Fix #29