Use chef to ensure postgresql symlinks are pointed correctly
- Add helper method to detect which version of the database is being used
- Add helper method to identify the postgresql files in bin which need to be linked to
- Add resources to postgresql recipe to ensure that links in /opt/gitlab/embedded/bin are pointing to the correct postgresql version
This should make pg-upgrade safe to use on docker images.