Refactor tests.
Add a module configuration and basic logging.
Add .travis.yml