Don't be so aggressive on redirects: it hurts local development.
Switch Markdown to Redcarpet, which normal GitHub uses.

This allows us to remove some gh-pages specific hacks we had to do before, and also fixes the messed-up footnote links.

Add some files for local development, which you can do by following the instructions at https://help.github.com/articles/using-jekyll-with-pages.