CLI code moved from bin into lib
Integration tests now start their own server
Setup travis to run unit and integration tests