Resource icon

scrub troubleshooting - timestamped logging of scrub

I've made some updates to the script so that it support encrypted pools (which aren't visible until you unlock them). The log script will now wait until the pool becomes visible and will then proceed monitoring and logging the restarted scrub.

I've also made some updates so that script has minimal interaction with the filesystem and does almost everything in memory.