Add definition and tests for "xpath" npm module.