Massive PR to turn into Library Cookbook

This is the big one!