Stabilizing and Optimizing Control for Time-Delay Systems: Including Model Predictive Controls