Make JsonReaderWriter substituable. Rearrange file IO infrastructure for implementation of JSON parsing for Aliases later.