Simplified class relations through typedefs. Greatly simplified
REGISTER_*** macros.