expose more xhr features
fix arguments to setRequestHeaders