Add specs and support for travis CI.