add csrftoken
Merge pull request #1 from bungoume/fix-csrf-error

fix rest api bugs