Prior to killing 10 and wounding three in a Buffalo, New York, grocery store this past weekend, the alleged gunman spent hours writing a 180-page onli