add --registry_class option

If specified, emits a class that contains a constant list of all
extension classes generated during the compile.  This list is suitable
for passing to Wire's constructor at runtime to populate its internal
ExtensionRegistry.