Tests and co

Fixed unit tests after rgkit became a package.
Added more unit tests.
Fixed run.py and run-headless.py.
Added Travis CI config file.