Cleanup and fix some master code
Add some comments.
Protocol family name now has its own field in service structure.
Add some more info in logs.
Fix non-primary service not being reactivated upon SIGHUP if primary instance
was disabled.
Fix master exiting due to bad file descriptors when non-primary service
reactivation fails: stat file descriptors add been copied from the primary
instance and closed as part of the non-primary entry removal.