Add ruby-head to travis
Add CodeClimate and TravisCI badges
Improve code quality