Stats processing: close pool after use

Review: http://codereview.adblockplus.org/5182947690807296/
Stats processing: allow reverting mistakenly applied logs

Review: http://codereview.adblockplus.org/5182947690807296/