fix issues #114, #129

this patch fixes issues when xml based epub are read. (openberg selects correct mimetype according to file extension)
not sure to understand. You talk about getElementByTagName vs querySelector ? I thought it was useless to call querySelector because I do not need selector anymore.(just reach tags head and body)