Made templates about a thousand times saner.
Reintroduce layouts.