Implement timed metadata refresh.

Fixes #8.