templates/ranking: Use url_for instead of h.url()
lib/helpers: Simplified url() parameter usage
lib/helpers: Removed tg code from country module
lib/helpers: Removed unused string_if() function
lib: Removed outdated tg2 files