The base library of the Midgard Content Repository