Learning-to-learn through Model-based Optimization: HPO, NAS, and Distributed Systems