Aerobic thermophilic and anaerobic mesophilic treatment of swine waste