fixed some lame init issues and concurrent issues in stats
dispatcher -> dispatch  (consistent with the other middleware)
some initial work towards a hydration middleware