Foundations of Application Management