Support max-age cookie attribute.

This patch adds support for max-age cookie attribute.

It also alters the case of some cookie attributes for consistence, and to comply with the recommendations of RFC 6265 [section 4.1.1](http://tools.ietf.org/html/rfc6265#section-4.1.1).