NXP-11943: better automation JS client API. 

Migrate tests to use mocha and its async testing feature to avoid managing that ourselves