Adam, great job! Thanks.
One stupid question: How is a ssh shell opened?
One possible bug, the page numbers seem to jump with epub format. I am assuming that this is because actual page numbers are in the format, as in one case I can see the page flows, it is just the number that jumps (from 3 to 5).