Towards biologically plausible Dreaming and Planning in recurrent spiking networks