Change SynapseXpath to SynapsePath to work with both XPATH and Json path

Hi Maheeka,
Please merge these changes.

Thanks