Bugfix and cleanup to Cookie.set and added Cookie.delete