Proper url_prefix when doc_base_url has multiple folders

The assignments to `Apipie.url_prefix` assume that the doc_base_url is one folder. This PR corrects assignments to `Apipie.url_prefix` with the proper traversal to the documentation root.