Misc enhancements and fixes.
Misc enhancements and fixes.

- Added info/warn output methods.
- Added cycle checking to write_data()
- Conditionally add newlines to error/info/warn output.
- Added a "run_hook" method.

GoogleCloudPlatform/SourceXCloud,GoogleCloudPlatform/SourceXCloud