add scripts to preprocess rmarkdown for github

from https://github.com/jbryer/jbryer.github.com