Refactor yii_framework definition into resource

Also added symlink path existence check