Copy AHK dependencies from FreenetReleased.
Use sed in-place instead of redirection.
Stop the SSH agent on all exits.
Fix missing installer copy.
Clone into, build in, and sign in temp dir.

This avoids requiring chown (running as root) or access to home
directories. An exit trap removes the temporary directory no matter
where the script exits.
Remove unused SEEDNODE_PATH configuration.
Disallow running the script as root.
Add --wine-debug to set WINEDEBUG while building.
Remove temp dir when exiting after agent start.

trap calls only one function, not a list of them.
Apply permissions before build.

Applying permissions to the containing directory was insufficient to
apply them to what it came to hold.
Give WineDebug URL in --help instead of comments.