web folder protection option (engine part)
Several fixes + refactoring