autmatically adding csrf token to ajax requests.

Please recheck!