Perform safety checks in create-stack-user.sh

This adds some safety checks to the stack user creation script.

This includes:
- Using set -e to exit early on errors
- Make sure the `functions` script exists
- Make sure the `stackrc` script exists
- Make sure STACK_USER is set before doing anything with it