Redirect Homebrew's Formulary.factory to the correct paths
Implement Repository#regenerate!
Improve Repository#update_metadata

Do operate on Formula objects instead of files and use formula paths
if applicable.
Do only fallback to Formula#version if no other version is set