Implements the formatter using RSpec 3's formatter API.

I had to do some refactoring in the formatter loading. It would be
a good idea if we were to use different Gemfiles in Travis.