Move fornue cookie function to module - in lib/