scripts/data_maintainer.py: imported from skytools 2.0
scripts/data_maintainer.py: updated
setup_skytools.py: added data_maintainer.py
scripts: sweeping change to postpone log string formatting
Parse & merge Postgres connect strings
configure.ac: check for -lrt

Needed when pgqd is built against libevent (--with-libevent)
create-node: validate, accept public location from config
setup_skytools: install grant files under /usr/share/skytools
more newgrants fixes.

mostly works now.

only problem is that londiste_writer needs to be
superuser because of session_replication_role.
That can be fixed with secdef function, but that
means code needs to be installed separately.
cascadeadmin status: wait for threads

Instead Queue.join(), call Thread.join() for each
thread.  Otherwise the thread can be active during
process shutdown and throw weird errors.

After that, calling Queue.join() seems useless; it can
even allow additional failure situations.

Also clarify thread count logic.
londiste: actually execute the ENABLE/DISABLE RULE query in londiste.create_partition
More newgrants fixes..
Revert "setup_skytools: install grant files under /usr/share/skytools"

This reverts commit c63236f11753c06a10dee125f2dc1cd241e92714.

setup_skytools.py wants ability to regenerate the fixes in pure-Python,
which is pain for grant files.  Will look into it later.
Merge remote-tracking branch 'petr/master'
scripts/data_maintainer.py: fixes
Merge branch 'master' of https://github.com/markokr/skytools