Feauture/cookies

This also contains the cron job code. Made a mistake while branching.