In 12 years, platform grew from random musings of reality TV star into cudgel of an American president, used to scorch lash opponents and give shape to his nationalist philosophy