Add persistent cookie store. Merge FastDB improvements from other projects.