Regex file coherence

Renaming arguments in the _read_from_sections() and authorized() methods (permission is always a permission, an collection_url is always a collection_url).

Moving the debug log at the proper place so that we get less confusing logs.