Add Epub export to mangle

You know what this is about.

Some of this code is shitty and straight up copying random stuff so delete as you see fit.