adding support for cookie attributes

Replace simplistic cookie handling with a solution backed by netty's `org.jboss.netty.handler.codec.http.CookieEncoder` and `org.jboss.netty.handler.codec.http.CookieDecoder`. 

After this patch, one can maintain various attributes on cookies (maxAge, domain, isSecure etc. etc.)