The teen behind one of Canada’s worst mass shootings had an online life that mirrored that of American mass shooters.