Metadata index performance and functionality enhancements

Deselect all metadata when loaded, then select based on "selected" key
or package.xml when metadata is requested