Split template_name into dirname and basename.

I believe this is closer to what we intend the behavior to be. For
example, if you have the following setting:

    JINGO_EXCLUDE_APPS = (
        'admin,
        'myapp/admin',
        'myapp/email',
    )

Then templates in the `myapp/` prefix will be rendered with Jinja2 but
templates in the subdirectories `myapp/admin/` and `myapp/email/` will
be rendered with Django.
Revert "Split template_name into dirname and basename."

This reverts commit 962754eeec206b520bc3dfcc50b267a4ea43d880.
Use split because we want the left-most part.
Support showing template source with debug toolbar
Add Python 3 support.