Add an idle callback, to be used while waiting for activity.
Merge pull request #11 from Adirelle/idle-callback

Add an idle callback, to be used while waiting for activity.