Move epub building code to DocbookXslWrapper module so we can use as a library, not just command line