Update comments. Add backward compatibility for CSP middleware.
Update documentation.