Add PostgreSQL replication lag to collectd

Create a stored procedure to calculate the number of bytes secondaries
are lagging from the primary. This is only tracked on the primary so it
is only added to the collectd query list there.
Use md5 for postgres monitoring auth

'trust' over tcp is a headache and doesn't seem to work with pgsql.