Support for slaves against an authenticated server and fixes for deploy keys.

Also a script to generate the needed secrets for use with secure_slaves.