refactored travis file, moved more into scripts.