Add inherited hooks to Class directly.

Something odd was happening when both the inherited hooks and inheritable class instance variable were loaded together. So instead of extending two modules that both override `inherited`, just inject the inherited hooks into the Class class directly.