Re-introduce sqlapi.host directive, allowing DNS lookups drop

For backward compatibility, sqlapi.host is only used if domain
is also defined and has a different value (empty string allowed).

Closes #117