Allow overriding postgres datadir

Also honour the version specified in postgresql.conf.erb

Change-Id: Ia2bbced2dccd504a30774ce846a24a74d1dd6af1
Merge "Allow overriding postgres datadir" into production