Make sure saving prefixes always works.
Bring back ontology cache'ing. Refs WFE-1217.