experimenting with phantomjs-node, for #5
fixing run callback hanging, fixes #3
fixing done callback, fixing agent setting and adding tests. fixes #4, #2, #3.
Merge pull request #6 from segmentio/phantomjs-node

Phantomjs node