Cleanup.
Rename some identifiers.  Update for new structure of values in policies.
Allow specification of next state to be a callable.
WIP rewrite.
Add test file to gitignore.
Bug fixes.
Formatting cleanup.
Make executable.
Misc bug fixes.
Move join_quote() to common.utils.
Change threading implementation.  Capture cases of exceptional thread death and disable the corresponding policy.
Small bug fixes.
Remove some defaults.