More robustness, archiving, bug totals, archiving, unique slugs

I think I might move this line up a little, so that we reset the total whether or not we have a $scope.project.
(Because if we don't have a project, do we really want the total from the previously-selected project?)