Added basic support for setting cookies.