Removed some clutter from the generator code.

Since I'm really working only with ePub files here, I've made the code
focused on the latter.

I've also fixed the --output option to actually work.