Bug 952907 - Patch 1: Use WebIDL codegen to implement Bluetooth events, r=smaug