Support for subclassing to define different primary key behavior, and in...

...herent support for inheritance.