Merge pull request #2 from dadadel/master

makes xPath return a JSON parsable string
Adds trigger API to trigger event on node
refactors triggerEvent method