Reworked SWORD state endpoint.
Minor template tweak.