Make Bluetooth objects participate in a tree and define IDL event handlers.

This makes progress on #20.
Specify how notifications work.

Helps with #9 and #20.