Converted rule infrastructure to code generation.
Generate mudobject's add rule methods too.