fix on returning and resolving promise on build devtool panel
enable devtool panel only on local target
unregister devtool panel on destroy (and destroy all registered panels on unload)
minor refactor set attributes on inner and outer frames
Merge pull request #1422 from rpl/fix/devtools-destroy

Fix dev/pane destroy and unregistering r=@gozala