add javascript permission check for delete uploaded files
remove unused TEMPLATE_CONTEXT_PROCESSORS