Fixed bug with csrf token.
Merge pull request #3 from jakon89/dev

Stable version.