(TK-31) Add cookie to ring handler response

Add cookie to the body of a successful ring handler response. If
no cookie is provided, the body will be unchanged, but if a cookie
is provided, this validates that the cookie exists and is not
being truncated.