Adds support for inheritance and multiple inheritance.
- Adds $extends class definition and hook.