Add travis configuration

Adds travis configuration adapted from Flask.