added ability to configure slots in layouts, too, and fixed some bugs and typos discovered in the process. refs #287