Bug 995425 - upgrade sinon to 1.9.1 and update API usage. r=julienw