Adds Travis Cl support to test the code automatically.

@pherl to review