Add initial tests and support for travis and coveralls