Add Travis CI control file
Add generated files to .gitignore

Rearranged slightly from Hanspeter's patch by putting the examples/
patterns into their own examples/.gitignore file.