Verify each script compiles and runs

Adds a set of tests covering compilation and execution of
scripts where possible, with limited verification of the
output of each script.

Invoke tests for all dependencies using:
$ PYSETUP_TEST_EXTRAS=yes python setup.py test

Change-Id: I836b641c5e315abc0c8eebf130885294d26ffd01