A study of the quantum-to-classical transition in gravity, and a study of the consequences of constraints in gauge theory path-integrals