refactor(firebase): factorized firebase url interpolation
fix(ranking): ranking resists to the number of submissions changing (internal or external sources)