trivial: Add 'refresh' and 'clean' commands to internal test tool
Improve handling of local metadata

When cleaning and refreshing metadata treat LOCAL source kinds differently from
REMOTE and MEDIA. We never want to delete local content even if the repo is
older than the permissible cache age.

Fixes: https://github.com/hughsie/libhif/issues/12