Allow modules to upgrade from old style to ns-style modules using 'oldnames' array key. Correct querymanager build and format.

refs https://github.com/zikula-modules/Legal/issues/30

/cc @shefik - you may not be able to replicate the process now, but I think this solves your issue. I was able to upgrade from an older install of Legal to the newest version after this correction.
Merge pull request #1546 from craigh/upgradeFix

Allow modules to upgrade from old style to ns-style modules