New debug_toolbar imports and patches urls

In order to avoid circular imports, debug_toolbar requires an
explicit setting to be declared and urls to be patched manually.