The ultra-long GRB 111209A. II. Prompt to afterglow and afterglow properties