Make sure that private directories exist before writing into them, and other refactoring.

Signed-off-by: Daira Hopwood <daira@leastauthority.com>
Add support for keeping storageserver/private/{convergence,node.privkey,secret} in secrets file.

Signed-off-by: Daira Hopwood <daira@leastauthority.com>