Add Code Climate badge to README
Break out into separate files in lib

Code Climate should now actually score the project properly.