Replace fmt! with format! and fix other errors in generator and generator output
Add generator building to travis config