Initial work on archetypes.

Any and all feedback welcome.