Added unit test framework and first unit tests.
Added travis support.