Add lookupPrefix function and rename confusingly named function resolvePrefix()
to lookupNamespaceURI(), which is in line with the DOM functions of the same names.