Added basic checking for channels and repositories to make sure the JSON looks somewhat reasonable