Use migrate module in place of Ocsigen_http_com
Optimize cast of cookie