Split up the installation script into smaller parts; removed the PWD constraint, and added an auth helper tool.