Matching and Saving in Continuous Time: Theory