Using templates, listing state in them.
Mostly migrated from 3.0 core, with some documentation adjustments. Removed the unused dev/tests/sessionloadyaml command.