Text this: The Thermodynamics of Network Coding, and an Algorithmic Refinement of the Principle of Maximum Entropy