Smartos new postgres

Fixed postgresql installation for new smartos postgres-server package. Fixed bug that restarts the postgresql service every time chef runs. Cleaning up a bit.