Add erlang-reltool dependency, add apt-get upgrade, and move NodeJS & NPM down.

apt-get upgrade is not the best practice, but nodesource triggers an update of
an apt package, which breaks subsequent apt-get update.