prevent appversions duplicates (bug 1007544)

Fixes [bug 1007544](https://bugzilla.mozilla.org/show_bug.cgi?id=1007544)

This is the "reloaded" version, with the tests passing (fixtures modifications, prevent AppVersion duplicates in the tests...)