Compute lightweight theme popularity and movers (bug 1059964)

Fixes [bug 1059964](https://bugzilla.mozilla.org/show_bug.cgi?id=1059964)

This PR is based on #252
Not sure to get why we are not just using int() here.