Refactor into standalone build scripts.
TESTING

Conflicts:
	.travis.yml
	scripts/publish-docs.sh