added another test
Factored out utility functions into test/lib/index.js.
Added phantom/webdriver tests.
make phantom test more thorough
renamed test-with-phantom.js to wdtest-app.js.
added more tests.