CPRF(Cross Page Request Forgery) protection. Docs and prototype for Ruby