Password protection added with session
Functions freeSpace and destFolderExists moved to utilities.php