Add an option, -s, to write decrypted files to a file rather than stdout. Decryptyed files have their mode set to 600. Also adds a few improvements to files.write. Change-Id: Ia1a6de78d401afbea6ee261652f4650071f54b60