Adding Coveralls/CodeClimate badges.
Backwards compatability updates for ruby 1.8.7

This mostly involved changing all of the hash syntax from `key: val` to
`:key => val` and changing calls from `Dir.exists?` to `File.exists`. Minor
other changes elsewhere.
Bump to 0.3.1, compatability for ruby 1.8.7.