Remove shebang, we don't run this as a script.
Actually start the background notification handling thread.
Store scanned devices in a set to remove dupes.
Retreive correct callback for a notification based on handle.