Move doctreemanipulation from the builder to the writer, handle titles from sources like LaTeX
Move doctreemanipulation from the builder to the writer, handle titles from sources like LaTeX

rafaelmartins/rst2pdf,rafaelmartins/rst2pdf