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
Shouldn't we need to ensure we are doing all this in a transaction, not to leave the db in the reset state in case of failure elsewhere in the script?