Store postgres info in configuration (defaults.json).

- Remove redis config section.
- Add postgres config section and computed connectStr.