Towards biologically plausible Dreaming and Planning