Reverted gem from rack back to a rails-based architecture

I wanted to make this a Rack-based gem, but had some troubles.  I still want to do that eventually, but for now the quick path is to just do a plain-old rails gem.