Very simple (and naive) cookie handler

Only handles name=val at the moment. Can handle saving of arrays.