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

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.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| Refs tickets  | https://github.com/zikula-modules/Legal/issues/30
| License       | MIT
| Doc PR        | -