What does a swollen tonsil and a cough mean if those are my only symptoms? Will it go away on it's own?

Yes. Cough is from the irritation of the pharynx. As tonsils heal (or removed) the irritation is removed and the cough should stop.
Virus. Likely just a viral upper respiratory infection. If symptoms persist for over 1-2 weeks consider seeing a doctor.