Refactor build & tests
Add travis