Add travis-ci config.
Fix line endings.
Merged from master.