Add StateTransition logic and logging.

- Change script to write output to a file.

- Add InvocationHandlers to manage state transitions.

- Add dependencies to support JDBC connections.

- Schema DDL for a (strawman) HSQLDB database to track state transitions.