Re-organize thor tasks.
Add Travis-CI support.