Some work towards writing some sample plugins (#337).