Add script for FTP block testing, tweak ftpscript

ftpscript got a few more variables and error-checking for ftp block.