Add new spec-code component.

Make spec-idl inherit from it and give it a .idl class name for compatibility with legacy spec tools.

Address issue #2.