Started porting story stats to ko, plus unit & functional tests.