added most of fmcpriano's footnote-octopress plugin