Gauges and constraints in the dynamics of general relativity