Charleston church that was site of massacre has long history, ties to 1822 slave rebellion