Handle external db servers

This adds what I think is everything needed to work with an external database server.

It doesn't handle the installation of `nominatim.so`, and in fact, I'm trying to deploy to Amazon RDS, so there's no way to load a C extension and I've dummied the two functions in my attempts.

It should however do everything else needed.

Password prompts happen. Use `.pgpass`.