Rewrite cookie_signer and tests
Use new cookie_signer in signed_cookie