Interplay between ferromagnetism, surface states, and quantum corrections in a magnetically doped topological insulator