url and host_url may return undefined

this can happen when the request parsing fails and onresponse
needs the url, its perfectly possible that the url has not
yet been defined
Make a few more missing headers lowercase
call websocket_terminate in case of a handshake error
Make cookies use universal time instead of local time

Includes:
  * cowboy_clock:rfc2109/1 now expects UTC datetime
  * Rewrite of the cookie code to cowboy_http
  * Removal of cowboy_cookies
  * Add type cowboy_req:cookie_opts/0

Cookies should now be set using cowboy_req:set_resp_cookie/3.
Code calling cowboy_cookies directly will need to be updated.
Update CHANGELOG
Small Markdown fixes to better follow the specs
Merge branch 'websocket_terminate_not_called' of git://github.com/dergraf/cowboy
Add {close, StatusCode, Payload} and fix {close, Payload}
Fix charset not working properly for REST
Fix broken 'make docs'
Merge pull request #335 from derdesign/master

Fix broken 'make docs'
Make the arguments to error_logger more consistent

The purpose of this patch is to make the arguments cowboy passes to
error_logger more consistent. With this patch there's only 3 variations
on the error_logger argument list; a 5 element list, an 8 element list
and a 10 element list. In all cases, the first 3 arguments are the
Module, Function and Arity of the function being called and the
second-to-last argument is always the Request. Additionally, for lists
longer than 5 elements, the last argument is always the stack-trace.

The added consistency of the argument ordering makes it much easier to
write code in lager's error_logger handler to catch these messages and
write a pretty one-liner (while writing the full message to the
crash.log).
Add missing quotes to quoting for cookie values
Merge branch 'adt-consistent-errors' of git://github.com/Vagabond/cowboy
Improve Markdown for the examples README
Fix multipart parser when the boundary is not fully read yet
Fix cowboy_http:cookie_to_iodata/3

No more trying to quote, this is still completely broken everywhere.
Add #ninenines IRC channel to the README + support options
Merge branch 'master' of git://github.com/Menirad/cowboy
Improve errors when the path provided is incorrect