From classical to quantum and back: A Hamiltonian scheme for adaptive multiresolution classical/path-integral simulations