Shape dynamics and Mach's principles: Gravity from conformal geometrodynamics