Switch over create_doc to a parser generated by leg.
Merge remote branch 'tom/gsoc-doc' into trunk