Merge pull request #826 from jonboulle/master

docs: add template unit files
Merge pull request #827 from jonboulle/master

docs: add note about global, clean up template
API: support query filters for States endpoint