Plugins can have idle_hooks now.

The hooks are run every 5 minutes in a thread of their own.
Change the read and save state API.
Update urls plugin's idle hook.

Currently only prints the urls, if it is time to send the newsletter.