Run integration tests

Many fixes to the integration tests so they can run without user intervention.  Also try to run these from travis-ci.  We use the wx backend though for this.