Adding some initial code. Much of this is from the kiji archetype.