Added option for rewriting cokkie domains.
Beautified code in the rewrite function.
Added cookieRewrite option documentation.
Updated documentation of the cookeRewrite option.
Corrected intentation to minimize diff to original.
Updated regex for cookie rewrite to support the case when the domain attribute is last.
Added tests for cookie rewriting.
Merge pull request #17 from elifa/master

Cookie rewrite option