Describe the role of the hypothalamus in the endocrine system and explain how it interacts with the pituitary gland to regulate hormonal activity in the body. Include examples of specific hormones involved in this regulation and the feedback mechanisms that control their secretion.