Investigate the theoretical aspects of transportation planning and traffic engineering, particularly in the context of traffic flow theory. Discuss the fundamental principles underlying traffic flow models, such as the macroscopic and microscopic approaches, and their application in optimizing roadway design, traffic signal timings, and congestion management strategies.