Added missing localhost entries

PostgreSQL was not comping up due to localhost not resolving:

  ping localhost

This was not working due to missing entry in `/etc/hosts` which we overwrite.

I see few other glitches when trying the installer (issues with yum). I will
likely add more commits into this PR, please do not merge yet.