remove dependency on stdlib package

This commit removes the dependency on the Stdlib package so that the Dom package can be used completely standalone. It does so by extending DOMXpath to wrap each raised error with an ErrorException with logic similar to that used in Stdlib ErrorHandler.