Cleaning this script up with a lot of code that has been copied from snapshot_minute.sh. It now requires Linux and open-zfs version 0.6.3 or higher.