Unexpected and widespread connections between bacterial glycogen and trehalose metabolism.