added simple module for opening/writing json config

also handles when file not found