Create cookie

Previous pull request caused some ugly new line issues - first commit fixes this plus some indentation tidy-up in the shared example file.

Second commit adds path and domain options when setting a cookie. Unfortunately for this feature to be tested 
I had to specify port and host in the spec_helper file.