Snapcraft hook support

Hi! Thanks for commenting on this. You’re right that we don’t make it clear hooks are running as root (through snapd, which is always running as root). I’ll add something to explain it better.

I could also tie this closer to our environment variables document, especially SNAP_USER_COMMON which as you’ve found is within a user’s home directory.