Add functions for setting file access permissions.

Implemented on POSIX-compliant systems.
Only no-ops for Windows since I can not test.
Mark the RSA key file as owner r/w only.
Allow for there being no profile (yet).