Refactored to allow the specification of a metadata task to run. Added GetNamespaces and GetTypes tasks in addition to the original, now default, GetRepositories.