Some refactoring to keep graph separate from app
Fixed stuff for testing
Some tests
Tox configuration file
TravisCI configuration file