Implement simple archetypes builder.

@senny can you take a look?