Cookies and extra queries

retooling of UI, reinclusion of libraries. Better starting point