utils/urlsindex: Modify UrlsIndex class to simplify API URLs management
Make that class instantiable in order for each swh django application to
manage its related Web API URLs independently from the swh.web.api django
It also simplifies initialization of applications as their ordering does
not matter anymore but also improves tests related to URLs registration
of an application.
Also add typing to UrlsIndex class.