some fixes for addons; removed some invalid markup; renamed setting RENAME_FILES_ON_UPLOAD to UPLOAD_ALLOWED