Use talloc for row memory
More SSL initialisation
Move PQ ssl init to instantiation function, just in case it needs to be done before we spawn threads
Spawn connections "in_use" or not.

No more double uses of the connections
Simplified sanity checks
Disabled debug checks
Various minor PG fixes
Cleanup connection properly on error
Minor fixes
Don't leak the results of open_querys
Revert "Minor fixes"

This reverts commit 39767b9818866cd527998fbe121538650bc32fa9.
Print message before connecting
Added TLS-Client-Cert-Subject-Alt-Name-Upn and TLS-Client-Cert-Subject-Alt-Name-Dns attributes (intended for use with EAP-TLS and checking certificates)
Whitespace
Use proper talloc context in tls.c.  Fixes #629

For sockets, the context is the parent listener.
For EAP sessions, the context is the TLS configuration.
Make INDEX_CERTS dynamic, too.

So that we can supply a free function.
Also bump the values of the other indexes.  OpenSSL allocates
indexes starting from zero, so we don't want it's indexes to
conflict with our indexes
Use talloc_ctx for new attributes, too
Use self pipes for signals.

So that the detail file "reply" code doesn't call the "read"
code from a child thread
Only use self pipes when threaded
Events are only managed by the main thread

event_new_fd() is now private.  There's a wrapper function
which takes care of adding the listener to a queue, and signalling
the main thread.