Bug 1055897 - [settings] add settings panel support

I changed the way to pass type based on our offline discussion, plz give it a check !