Added support for dynamically changing favicons.

My app changes the favicon when you navigate around the site. I use turbolinks, and I noticed that the icon didn't change when I went from one page to another.

I pattern-matched how the CSRF token is handled and implemented favicon-switching support.