Modified .gitignore to match new directory layout.
Created a standard yii webapp.
Added script to set required permissions on yii directories.