Smoothed Online Optimization for Regression and Control