Upgraded to websocketd 0.2.9.  Added some echo's to track what's going on in the script.  Added cleanup to remove files when done.