use middleware for warper cookie
Merge branch 'master' into integration