Secure folder wiping.

WIP. Would like to make the promises spaghetti cleaner, if possible... (hints welcome)
Refs #220