Use request's new cookie API

Fixes #25