Installer fixes

PostgreSQL setup fixes; fault-tolerant downloads; exception handling.

- Fixes #450 - PostgreSQL fails to start - @MalcolmEvershed
- Fixes #433 - rvm installation is fragile
- Fixes #441 - Retry mozroots during installation