Add travisci, change viewflow with xworkflow, add tests