Noether Symmetries in Theories of Gravity