add csrf token to CGridView ajax call when ajaxType is set to POST
simplify the check for csrfTokenName and csrfToken settings
Merge pull request #2873 from nineinchnick/2864_cgridview_csrf_when_ajaxType_is_post

add csrf token to CGridView ajax call when ajaxType is set to POST
minor formatting fix