Added a GetSubtypesTask.
Added a GetMetadataObjectsTask and a utility method to determine the foundation repository id.