Bring settings under the api
Allow changing cookie name