Bug 936340 - Implement navigator.sendBeacon. r=
Some of ehsan feedback.