Add missing function rewrite_urls

rewrite_urls was removed some time ago from core tt-rss. Instead of
removing the function re-create the function in the plugin itself.