Duality in the Quantum Dissipative Villain Model and application to Mesoscopic Josephson Junction Circuits