Add support for tablespaces.

The gist of this is to create/remove symbolic links. In libpq-mode,
use pg_tablespace_location() to query the target of a tablespace symlink.

Based on patch by Samrat Revagade