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.