Do not restore sinon global objects in afterEach.

STUD-1040
Add documentation.
Merge pull request #1951 from edx/christina/fix-xhr

Workaround for "xhr.restore" failures.