Move the repo fetching logic into functions.
Add checking for necessary files.
Move cloned repos to an 'src' directory.
Simplify the logic to loop over LAYERS.
Add 'src' to path in the environment and bblayers.
Change LAYERS format so we can separate bitbake from the meta layers.
Put new metas directory in the ignores.