Add sample_generator.py and update samples to via generator.

Reviewed in: http://codereview.appspot.com/4449062/
15 files changed