Ryan Routh portrayed himself online as a man who built housing for homeless people in Hawaii, tried to recruit fighters for Ukraine to defend itself against Russia, and described his support and then disdain for Donald Trump — even urging Iran to kill him.