Update project structure and ensure examples, tests and docs are built on travis-ci