Remove localhost check from app_dev.php
Use setfacl to set permissions for /logs and /cache