csrfProtector library modified to be completely standalone