Refactor smaller components into packages
Add make test to Travis
Fix ql build
Use make in Travis config