Lectures on Quantum Gauge Theory and Duality