Add support for whole-device mapping.
Add support for whole-device mapping.

Previously to get all of the messages sent by a given device, you needed
to register a global handler which received all messages sent by
everything. It's more efficient to let device mapping implementations
register interest in only events from their device, which this change
enables.

brunchboy/afterglow,brunchboy/afterglow,brunchboy/afterglow