Ruby interface for reading and writing mobipocket books