Move dependency installation to function.
TESTING: Change GH credentials for fwalch/doc.

Conflicts:
	scripts/publish-docs.sh

Conflicts:
	.travis.yml