Extracted some server communication for use in Commitments and in
categories.