Add loaded event to NewMetadataPanel

Send an event when template store and group store are loaded and send the current value of those stores in the event.

This is used to automatically create a new metadata with the default template and group wihout showing the NewMetadataPanel.