cleaned up BeamerTranslator.depart_document() to fix crash with docutils 0.8; added --use-pdfpages option