tests and travis

Added travis support, which will run tests whenever we push to master or make a pull request.