fix overrideMimeType function and add restore function

as propose by https://github.com/cjohansen/Sinon.JS/issues/559
 discussion and add restore function to permit user to restore xhr object as sinon.js permit it