Display number of records for the last snapshot

In the repository index the number of metadata records from the latest
snapshots are displayed. Before it was all metadata data associated to
a certain repository.

This was the starting point for the whole refactoring towards a snapshot
entity.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Update controller and view for repository view

Just updated the repository view to the new conventions.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>