Added test target and Travis CI.
Merge pull request #14 from dblock/tests-and-ci

Added test target and Travis CI.