Major refactoring, and added per-program livestream statistics