Stochastic Processes in Epidemic Theory