Platform-independent stats storm scalding

First stab at the platform-independent stats in Summingbird. Not ready for merge, open for comments. Still working on unit testing.