Fix problems with registerPrefCallback
Fix some problems unloading iwidgets in the smartphone version of Wirecloud