Court papers show talk of civil war, traitors, revolution mirrored fighting words repeated by right-wing personalities, websites ahead of riot as Trump spread bogus election claims