Cast stats counts as integers (bug 997465)

Also:
- use a setting for the collector addon
- remove dbg from stats/manager.js

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=997465