Add support for Travis CI

Build and runt the tests, and check for memory leaks

Signed-off-by: Max Sikstrom <msikstrom@op5.com>