Implement config file editing (not tested) and add JSON peer option (not
functional)