Improved html output of various files.
Fixed security bug in upload.php.
Change name of xhr.php to search_projects.php.
Settings.template and therefore Settings.php now does not overwrite it's own rebuilding code when rebuilding.
Enhance security of clean.php.