Switched to json for data storage

Also added some network connectivity