storagefactory emits storageReady() when all plugins are ready

This a refactoring in preparation for doing the storage enumeration
asynchronously. In this commit the signal is hooked up but nothing
is done with it yet.
cleanup: fix compiler warning