Update references in webprojects. Add filter functions.
Add validity checks for files and directories.