The 999th Swift gamma-ray burst: Some like it thermal: A multiwavelength study of GRB 151027A