app.py: Sets the highest min logger level possible instead of debug.

Reduce string formatting calls when --debug is not enabled.
url.py: Simplifies if cases for is_percent_encoded() and split_query()