Add stats for pool and host

Creating shared dictionaries for stats and icrement counters in log_by_lua phase.