Implement flow stats. Added --no-flow-stats and --flow-expiry options.

closes #23.