Protein Activity Sensing in Bacteria in Regulating Metabolism and Motility