moved gadget registry api to separate class
Applying new changes of gadget registry APIs