ariya/phantomjs — pull request #226 by detro (2012-03-23 11:58:20+00:00)
Title: Fixing test specs and addressing Issue 451 and 452

This pull request covers a bit of extra ground:
- fixes the test spec for the "webserver" and "fs" modules
- addresses Issue 451 (that I opened) to add a "closeGracefully" method to the "response" object
- addresses Issue 452 (that I opened) to allow passing "headers" to the "webpage.open()" method

I know 2 are "features" but putting them in branches would have been too much for too little (the code is minimal to add the features).

*PS* I'm sort of "adding features" as I come across scenarios that we don't cover for my work on [ghostdriver](https://github.com/detro/ghostdriver). I'm keeping myself as general as possible, so hopefully nothing I do is biased by my needs :)
*PPS* I know, this will probably end in 1.6 as 1.5 has already been released. And it's OK, because none of those are fixes to functionality.