Began implementing secure temporary path handling.

Such handling comes (marginally) inspired by a rather crude attempt at
"mktemp" we grokked online. Needless to say, the results are likely to
be unflinchingly deplorable.