Make tests run in node via 'node test.js'
Add test for pause/resume
Stop requesting animation frames when stream is paused

Since a new frame was being requested for every 'data' event the process was
unable to exit due to unfinished timers.

Fixes #12