Made a start for the cookiemanager
Added the cookiemanager, and a bugfix on the index.php