Added activity streams, stats, and did some refactoring.