New plugin for converting legacy namespaces (resolves #666)

Basic support for legacy namespaces.
This implements #666.