Allow for multiple hooks
Implemented more functionality.
Ensures only one mqtt publish of MQTT event per hook
Hooks the device appearing to check in member
device appear and disappear, plus a bit of debug
Device appear Checks in Members
Auto-generate the event for mqtt and code to close the space on last member checking out (assuming no devices present)
Call the Internal hook first, or the mqtt will look at out of date data
Hook on device disappear for member check-out
Better naming, a couple more events and bad array structure
check if the device is already appeared/vanished to avoid network floods
add unknown device disappear event.