fixes for server configuration.
merge changes from openpetra.js patch.
use localhost instead of hostname.
use name of service instead of openpetra.
make sure postgresql starts on reboot.