The alleged perpetrator of Wednesday’s gun attack on a German synagogue had few friends, but a clear idea of the internet audience he wanted to impress.