The Dynamics of Vacuum, Gravity and Matter: Implications on the Fundamental Constants