Add script to make end-to-end test of the opbeat client

Run using npm:
npm run test-cli