Add support for extending classes

- Extended class must be white-listed.

Refs #5