Made use of `esxml-head'

Changed esxml to make use of tali's new `esxml-head' function.  Also
refactored `(file-name-sans-extension (file-name-nondirectory
wikipage))' into a separate function.
Minor tidying.

Removed extra variable `page-info' in a let binding, and just rebind
`pageinfo'.