Enviar por SMS: Adaptive submodularity, theory and applications in active learning and stochastic optimization