Fixed #724: RequestHandler's set_cookie method with wrong formatted expires attribute

I fixed my issue by allowing a format argument to be passed to ``tornado.httputil.format_timestamp`` (keeping the the standard HTTP way as the default) and using Netscapes format for a cookie's ``expires`` value and wrote tests.

Fixes https://github.com/facebook/tornado/issues/724