Use knitr for the vignette

Work in progress, includes #36.

http://yihui.name/knitr/demo/vignette/