fix typo
ami-waiton knows about reachable states

Implements some of the intelligence promised in the README.
Encapulate ami-waiton main() better

Instead of operating by side effects for printing/reporting and exiting,
returns dict that describes how the enclosing __main__ can do that job.