Load of configuration (login/password) from postgresqlconf
Frozen set for list of directories under which to search socket files
Connection remains open to have a chance to collect data on emergency
Beautification, and removing of dead code (redundant except block in main())
Metod is_sockfile(path) moved to lib/utils.py to avoid code duplication