PostgreSQL support; refactoring

- Added support for PostgreSQL (8.x and 9.x)
- Hostname is now sent with the mount create request
- Refactored reading configuration files