Remove public access to system and application folders and create public resources folder