Classical and Quantum Solutions in Brans-Dicke Cosmology with a Perfect Fluid