Added client factory.
Added callbacks for members joining and leaving.
Added travis config file.