Make Travis run doctests.

I set up a bunch of doctests long ago, but Travis wasn't running them.  Now it will.

Since nose imports files when looking for tests, I had to modify cleanup_examples.py so that it wouldn't actually do anything on import.

I also fixed one test that had broken.
I would put this file in a subdirectory like scripts.