A Bayesian Routing Framework for Delay Tolerant Networks