Remove dependency on $sce. Add new conf property 'file' - if set, view requests will be sent modified as in fs.