Add initial tests for prototypes. Also make it possible for a PrototypeDefinition to reference another prototype. Commit dist too.