Log byte length of the cookie value

In production we are hitting a max nginx header size,
probably from a big cookie value. This should help debug it.
Re-order imports

This  should only be a cosmetic change.
Merge branch 'kumar303-log'