Cookie ajax

* closing cookie policy window redirects to `request.referer`, or `/` if that is somehow nil.