Switch to using Consul to discover the PostgreSQL instances.

* Switches to (almost) completely using Consul to discover PostgreSQL instances.
* Removes the ip restrictions from ``pg_hba.conf`` and instead use subnet restrictions.
* There is still one ``mine.get``, which is used to discover the master to do an initial replication, I'm not sure atm how to get rid of that.