Online Variational Analysis In Sobolev And Bv Spaces: Applications To Pdes And Optimization (Mps Siam Series On Optimization)