Closes #1164: Session lost

In relation with #1164.

- added `prototype-snippet.js`
- added this JS to `layouts/content`

thx @BenjaminVialle for the [link](http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails/)

Take cake for the entire migration to jQuery.