Switch to sha256sums.
Switch git back to 1.7.0 instead of mistakenly trusting apt.
Remove erlang from stack image.
Add libpq5 and libpq-dev from the official postgres repo.