Add travis-ci and tox
travis-ci depends on tox
Move history reset into master thread, multiple-output files handled properly
Merge branch 'unittests' into job_completion