Added csrf protection.

Set up csurf. Closes #1.
Merge pull request #2 from olegpesok/csurf

Added csrf protection.