Integrate with Travis CI, extend xd.tool.shell and add unittests to it