Remove unused imports
Fix webpay task that was still using the old 'site.terms' URL
Fix middleware tests to not rely on obsolete URL anymore.