Added thresholds to memory monitoring

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