Moved cookie and panel related functions

All functions getting/setting cookies and working on showing or getting
values from panels are now located in panel.inc.