Setup testing framework

* nosetest
* flake8
* travis-ci