Added support for CSRF protection to all POST, PUT, and DELETE actions.