Persistency library for saving cookies with LocalStorage fallback