Dynamics of Quantum Dot Lasers: Effects of Optical Feedback and External Optical Injection