add CSRF protection
initial revision
Merge pull request #162 from ArcBees/jd_rest_dispatch_2

add CSRF protection